package com.arcaneshift.model.action.game;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.arcaneshift.model.abstracts.AbstractCard;
import com.arcaneshift.model.util.CardType;
import com.arcaneshift.model.util.ElementType;

@Entity
public class SpellCard extends AbstractCard {
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	@Basic
	private ElementType element;
	
	@Basic
	private String name;

	@Override
	public ElementType getElement() {
		return element;
	}

	@Override
	public void setElement(ElementType element) {
		this.element = element;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public CardType getType() {
		return CardType.SPELL;
	}

	@Transient
	public static final String ID = "id";
	@Transient
	public static final String ELEMENT = "element";
	@Transient
	public static final String NAME = "name";
}
